import layout from '../layout/main.vue'
const routers = [
  {
    path: '/',
    component: layout,
    icon: '',
    meta: {
      title: '首页',
    },
    children: [
      {
        icon: '',
        path: '',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
        },
      },
    ],
  },

  {
    path: '/LargeScreen',
    component: layout,
    icon: '',
    meta: {
      title: '大屏数据',
    },
    children: [
      {
        icon: '',
        path: '',
        component: () => import('@/views/LargeScreen/index.vue'),
        meta: {
          title: '首页',
        },
      },
    ],
  },
  {
    path: '/user',
    component: layout,
    icon: '',
    meta: {
      title: '用户中心',
    },
    children: [
      {
        icon: '',
        path: '/userBase',
        component: () => import('@/views/User/userInfo/index.vue'),
        meta: { title: '基本信息' },
      },
      {
        icon: '',
        path: '/setPassWord',
        component: () => import('@/views/User/userPass/index.vue'),
        meta: { title: '修改密码' },
      },
    ],
  },
  {
    path: '/menu',
    component: layout,
    icon: '',
    meta: {
      title: '菜单管理',
    },
    children: [
      {
        icon: '',
        path: '/setMenu',
        component: () => import('@/views/menu/index.vue'),
        meta: { title: '菜单管理' },
      },
    ],
  },
  {
    path: '/picture',
    component: layout,
    icon: '',
    meta: {
      title: '图片管理',
    },
    children: [
      {
        icon: '',
        path: '/waterfallFlow',
        component: () => import('@/views/picture/index.vue'),
        meta: { title: '瀑布流' },
      },
    ],
  },
]
export default routers
